package com.epic.followup.service.wechat;

import com.alibaba.fastjson.JSONObject;
import com.epic.followup.model.app.AppPatientModel;
import com.epic.followup.temporary.DealMessageResponse;
import com.epic.followup.temporary.wechat.patient.*;

public interface WechatPatientService {


    //注册时发送验证码
    DealMessageResponse sendRegisterCode(String tel);
    //登录时发送验证码
    DealMessageResponse sendLoginCode(String tel);
    //重置密码时发送验证码
    DealMessageResponse sendResetPasswordCode(String tel);
    //通过验证码登录
    WechatLoginbyCodeResponse loginbyCode(WechatLoginbyCodeRequest req);
    //通过密码登录
    DealMessageResponse loginbyPassword(WechatLoginbyPasswordRequest req);
    //注册
    DealMessageResponse register(WechatRegisterRequest req);
    //改密码
    DealMessageResponse resetPassword(WechatRegisterRequest req);
    //添加个人信息
    DealMessageResponse setInformation(WechatInformationRequest req,String phone);
    //获取个人信息
    WechatInformationResponse getInformation(String tel);
   //根据手机号一键登录
    JSONObject wechatAutoLogin(String phoneNum);
    //更新用户信息
    void savePatient(AppPatientModel p);
}
